﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
using System.Windows.Forms;

namespace RCSnake
	{
	class Border
		{
		/*---------------------------------------------*\
		|*                 Attributs                   *|
		\*---------------------------------------------*/
		private Point m_position;
		private Size m_size;
		private Rectangle m_rectangleBorder;
		private bool m_hasBorder;
		/*---------------------------------------------*\
		|*                Constructeur                 *|
		\*---------------------------------------------*/
		public Border(Point postion, Size size)
			{
			m_position = postion;
			m_size = size;
			m_rectangleBorder = new Rectangle(m_position, m_size);
			m_hasBorder = false;
			}
		/*---------------------------------------------*\
		|*               Methodes public               *|
		\*---------------------------------------------*/
		public void draw(PaintEventArgs e)
			{
			Pen pen = new Pen(Color.Black, 3);
			e.Graphics.DrawRectangle(pen, m_rectangleBorder);
			}
		/*---------------------*\
		|*      get / set      *|
		\*---------------------*/
		public Rectangle rectangleBorder
			{
			get { return m_rectangleBorder; }
			}

		public bool hasBorder
			{
			get { return m_hasBorder; }
			set { m_hasBorder = value; }
			}
		}
	}
